package com.wyl.circularDependency;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 吴宇亮 on 2022/3/17 11:03
 */
@RestController
public class TestController {

    @Autowired
    private BeanA beanA;
    @Autowired
    private BeanB beanB;

    @GetMapping("/test")
    public void Test() {
        beanA.invokeBeanB();
        beanB.invokeBeanA();
    }
}
